<?php
class info{
    public $pool;
    public $type;
    public $value1;
    public $value2;
    public $value4;
    protected $address = "/www/wwwroot/tool.roarminer.com/python/index.py";
    public function init($p,$t,$v1,$v2,$v3){
        $this->pool=$p;
        $this->type=$t;
        $this->value1=$v1;
        $this->value2=$v2;
        $this->value3=$v3;
        return 0;
    }
    public function requestInfo(){
        $cmd="python "+$this->address+" $this->pool $this->type $this->value1 $this->value2 $this->value3";
        return shell_exec("$cmd");
    }
    public function trigger($rawdata){
        $data= json_decode($rawdata);
        

    }

}
?>